from PIL import Image
import os


def img_resize(file, h, w):
    img = Image.open(file)
    Resize = img.resize((h, w), Image.Resampling.BICUBIC)
    Resize.save('resized.png', 'png', optimize=True, quality=90)


if __name__ == '__main__':
    img_resize('img/xrb.png', 10, 10)
